<extend name="Base/common"/>
<block name="body">
<div class="proDelBox">

	<form action="{:U('Pay/incharge_insure')}" method="post">
	<div class="proDelPayLi proDelBorderBottm">
		<p class="proDelBorderBottm">
			<span class="al" style="flex:2.63;">账户名</span>
			<span class="ax">{$nickname}</span>
		</p>
		<p>
			<span class="al">账户金额</span>
			<span class="ax defaultred2">{$user_money}</span>
			<span class="aj">元</span>
		</p>
	</div>
	<div class="proDelPayLi proDelBorderBottm" style="margin-top: 20px;">
		<p >
			<span class="al">充值金额</span>
			<input class="ax defaultred" id="money" name="money" type="text" placeholder="请输入金额"/>
			<span class="aj">元</span>
		</p>
	</div>
	<div class="proDelPayLi  proDelBorderBottm" style="margin-top: 20px;">

		<p>
			<span class="ax" style="color:#363232;"><img src="__NEW__/option/images/weixin.png" style="margin-right: 10px;" />微信支付</span>
			<span class="aj icon-uniE90D defaultred" style="text-align:center"></span>
		</p>
	</div>
</form>
<p style="padding-left: 10px;line-height: 36px; color:#989898;font-weight:normal;font-family:'microsoft yahei'" class="defaultAsh"><span class="icon-uniE90A defaultBlue"></span>每笔最少50元，最多1000元。</p>

<p style="padding:0px 10px;line-height: 36px;height: 36px;"><input type="submit" class="proDelSubmit" value="确认支付"></p>
	</form>

</div>

<script type="text/javascript">

$('.proDelSubmit').click(function(){
	var money=$('#money').val();
			var re = /^\d+\.?\d{0,2}$/;
			if (!re.test(money)){
				alert('请输入正确的金额!',2000);
			    return false;
			}
			if(money<50){
				alert('最小金额为50.0',2000);
				return false;
			}
			if(money>1000){
				alert('最大金额为1000.0',2000);
				return false;
			}
			$('form').submit();
			$('#btn1').attr('disabled',true);
			document.getElementById("btn1").innerHtml="正在跳转...";
        	setTimeout(function (){
            	document.getElementById('btn1').disabled=false;
            	document.getElementById("btn1").innerHtml="微信充值";
        	},3000);
			return true;
})
</script>
<include file="Public/footer"/>
</block>
